package com.zxx.pattern.compositePattern.composite2;

import java.util.List;

/**
 * @author zxx on 2021/5/20
 */
public class Leaf2 implements Component2 {

    @Override
    public void doSomething() {
        System.out.println("执行方法 -- in Leaf: " + this.toString());
    }

    @Override
    public void add(Component2 component) {

    }

    @Override
    public void remove(Component2 component) {

    }

    @Override
    public List<Component2> getAll() {
        return null;
    }
}
